import type { LoginResponse, UserInfo } from '@/services/modules';
import request from '@/utils/request';
export const mockUserInfo = (params: any): Promise<R<UserInfo>> => {
  return request({
    url: '/user/info',
    method: 'get',
    params,
  });
};

export const mockLogin = (data: any): Promise<R<LoginResponse>> => {
  return request({
    url: '/login',
    method: 'post',
    data,
  });
};
